package com.lqk.strategy.improve;

/**
 * @author lqk
 * @date 2021/12/13 13:18
 */
public class WildDuck extends Duck {
    // 构造器，传入FlyBehavior 对象
    public WildDuck() {
        flyBehavior = new GoodFlyBehavior();
    }

    @Override
    public void display() {
        System.out.println("~~野鸭~~");
    }

}
